package com.fare.taluo.vo.core;

import org.apache.commons.lang3.StringUtils;

import com.fare.taluo.GlobalsConst;

/**
 * 查询父类Vo
 * @author spring.华 
 */
public class QueryVo {
	
	//从城市
	private String fromCity;
	/**
	 * 目的地
	 */
	private String toCity;
	//
	private String fromCityName;
	//
	private String toCityName;
	//
	private String flightNo;
	
	private String flightTimes;
	
	private String returnDate;
	
	private String queryType;
	public String getFlightTimes() {	
		return flightTimes;
	}
	public void setFlightTimes(String flightTimes) {
		this.flightTimes = flightTimes;
	}
	/**
	 * 承运人==hbasekey
	 */
	public String carrier ;
	/**
	 * 最低价
	 */
	public String price  ;

	/**
	 * 起飞时间
	 */
	public String depTime ;
	
	/**
	 * 代理人名称
	 */
	public String agentName;

	/**
	 * 降落时间
	 */
	public String arrTime;                              
	/**
	 * 其它标识 比如0为官网，1为渠道
	 */
	public String remark;
	
	/**
	 * checkbox 
	 */
	public String checkbox;
	/**
	 * 自定义时间 1
	 */
	private String timeFbegin;
	/**
	 * 自定义时间2
	 */
	private String timeTbegin;
	
	/**
	 * 未来天数
	 */
	private String futureDay;
	/**
	 * 抓取时间
	 */
	private String grapDate;
	/**
	 * 通过页面传入的格式字符串,解析出hbasekey
	 * <p>从参数carrier中解析，格式如:20000_ZH
	 * @return 渠道的hbasekey,比如20000
	 */
	public String getHbaseKey(){
		return StringUtils.isNotBlank(carrier) ? carrier.split(GlobalsConst.SEPARATOR_UNDERLINE)[0] : null;
	}
	/**
	 * 通过页面传入的格式字符串,解析出hbasekey
	 * <p>从参数carrier中解析，格式如:20000_ZH
	 * @return 渠道的carrierkey编码,比如ZH
	 */
	public String getCarrierKey(){
		return StringUtils.isNotBlank(carrier) ? carrier.split(GlobalsConst.SEPARATOR_UNDERLINE)[1] : null;
	}
	public String getGrapDate() {
		return grapDate;
	}
	public void setGrapDate(String grapDate) {
		this.grapDate = grapDate;
	}
	public String getFutureDay() {
		return futureDay;
	}
	public void setFutureDay(String futureDay) {
		this.futureDay = futureDay;
	}
	public String getCheckbox() {
		return checkbox;
	}
	public void setCheckbox(String checkbox) {
		this.checkbox = checkbox;
	}
	public String getFromCity() {
		return fromCity;
	}
	public void setFromCity(String fromCity) {
		this.fromCity = fromCity;
	}
	public String getToCity() {
		return toCity;
	}
	public void setToCity(String toCity) {
		this.toCity = toCity;
	}
	public String getFromCityName() {
		return fromCityName;
	}
	public void setFromCityName(String fromCityName) {
		this.fromCityName = fromCityName;
	}
	public String getToCityName() {
		return toCityName;
	}
	public void setToCityName(String toCityName) {
		this.toCityName = toCityName;
	}
	public String getFlightNo() {
		return flightNo;
	}
	public void setFlightNo(String flightNo) {
		this.flightNo = flightNo;
	}
	public String getCarrier() {
		return carrier;
	}
	public void setCarrier(String carrier) {
		this.carrier = carrier;
	}
	public String getPrice() {
		return price;
	}
	public void setPrice(String price) {
		this.price = price;
	}
	public String getDepTime() {
		return depTime;
	}
	public void setDepTime(String depTime) {
		this.depTime = depTime;
	}
	public String getAgentName() {
		return agentName;
	}
	public void setAgentName(String agentName) {
		this.agentName = agentName;
	}
	public String getArrTime() {
		return arrTime;
	}
	public void setArrTime(String arrTime) {
		this.arrTime = arrTime;
	}
	public String getRemark() {
		return remark;
	}
	public void setRemark(String remark) {
		this.remark = remark;
	}
	public String getTimeFbegin() {
		return timeFbegin;
	}
	public void setTimeFbegin(String timeFbegin) {
		this.timeFbegin = timeFbegin;
	}
	public String getTimeTbegin() {
		return timeTbegin;
	}
	public void setTimeTbegin(String timeTbegin) {
		this.timeTbegin = timeTbegin;
	}
	public String getReturnDate() {
		return returnDate;
	}
	public void setReturnDate(String returnDate) {
		this.returnDate = returnDate;
	}
	public String getQueryType() {
		return queryType;
	}
	public void setQueryType(String queryType) {
		this.queryType = queryType;
	}
	
	

}
